package api.doctor;

import java.io.IOException;
import java.util.HashMap;
import java.util.Map;

import org.json.JSONException;

import common.Host;
import common.Request;

/**
 * 实现医生端-获取聊天列表getActiveSubjectInfo接口调用
 * @author lyn
 * 
 */
public class GetActiveSubjectInfo 
{	
	/**
	 * 医生端-获取聊天列表getActiveSubjectInfo接口
	 * @param ResponsorID- 医生ID
	 * @param token- 调用接口需要的token
	 * @return 接口返回数据
	 * @throws IOException
	 * @throws JSONException
	 */
	public static String options(String ResponsorID, String token) throws IOException, JSONException
	{
		//拼接接口地址
		String url = Host.getAddress() + "/api/IMContent/getActiveSubjectInfo";
						
		//给接口参数赋值		
		Map<String, String> parms = new HashMap<String, String>();
		parms.put("ResponsorID", ResponsorID);
					
		//调用接口并返回接口结果
		String result = null;
		result = Request.options(url,  (Map<String, String>) parms, token);
		return result;				
	}	
}
